window.onload=function(){
			var oSpan=document.getElementsByTagName("span");
			for(var i=0;i<oSpan.length;i++){
				oSpan[i].style.display="none";
			
			}
		}
  function focuss(obj){
  		obj.style.borderColor="#9400D3";
  		obj.placeholder="";
  }
  function buler(obj){
  		obj.style.borderColor="#D3D3D3";
  		if(obj.id=='username'){
  			obj.placeholder="请输入用户名";
  		}else if(obj.id=="password"){
  			obj.placeholder="请输入密码"
  		}
  		if(obj.value==""){
  			document.getElementById(obj.id+"_s").style.display='inline';
  		}else{
  			document.getElementById(obj.id+"_s").style.display='none';
  		}
  }
  function login1(){
	  var username=document.getElementById("username");
	   var password=document.getElementById("password");
	   if(username.value==""||password.value==""){
	   alert("用户名或密码不能为空")
	    return;
	   }else{
	     document.getElementById("login-form").submit();
	   }
  }
 